
const Trade = () => import(/* webpackChunkName: "Trade" */ '@/views/trade/index')
const Supplies = () => import(/* webpackChunkName: "Sales" */ '@/views/trade/supply/list')
const Supply = () => import(/* webpackChunkName: "Sales" */ '@/views/trade/supply/detail')
const SuppliesBoard = () => import(/* webpackChunkName: "SuppliesBoard" */ '@/views/trade/supply/post')
const SuppliesBoardInfo = () => import(/* webpackChunkName: "SuppliesBoard" */ '@/views/trade/supply/post/info')
const SuppliesBoardFishes = () => import(/* webpackChunkName: "SuppliesBoard" */ '@/views/trade/supply/post/fishes')
const SuppliesBoardAddress = () => import(/* webpackChunkName: "SuppliesBoard" */ '@/views/trade/supply/post/address')
const Demands = () => import(/* webpackChunkName: "Demands" */ '@/views/trade/demand/list')
const Demand = () => import(/* webpackChunkName: "Demands" */ '@/views/trade/demand/detail')
const Search = () => import(/* webpackChunkName: "Search" */ '@/views/trade/search')
const Shops = () => import(/* webpackChunkName: "Shops" */ '@/views/trade/shop/list')
const Shop = () => import(/* webpackChunkName: "Shops" */ '@/views/trade/shop/detail')

export default [
  {
    path: '/trade', //首页
    name: 'trade',
    component: Trade,
  },
  {
    path: '/trade/supplies', //供应列表
    name: 'supplies',
    component: Supplies,
  },
  {
    path: '/trade/supply/:id',  //供应详情
    name: 'supplyDetail',
    component: Supply,
  },
  {
    path: '/trade/supplies/post', //供应发布
    name: 'suppliesBoard',
    component: SuppliesBoard,
    children: [
      { 
        path: 'info',
        name: 'suppliesBoardInfo',
        component: SuppliesBoardInfo
      },
      {
        path: 'fishes',
        name: 'suppliesBoardFishes',
        component: SuppliesBoardFishes
      },
      {
        path: 'address',
        name: 'suppliesBoardAddress',
        component: SuppliesBoardAddress
      },
    ]
  },
  {
    path: '/trade/shops', //店铺列表
    name: 'shops',
    component: Shops,
  },
  {
    path: '/trade/shop/:id', //店铺详情
    name: 'shop',
    component: Shop,
  },
  {
    path: '/trade/demands',  //求购列表
    name: 'demands',
    component: Demands,
  },
  {
    path: '/trade/demand/:id',  //求购详情
    name: 'demand',
    component: Demand,
  },
  {
    path: '/trade/search',
    name: 'search',
    component: Search,
  }
]


